home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / MJW01A.422 < prev    next >
Text File  |  1993-04-12  |  5KB  |  133 lines

  1. MJW1a.mod Rev.a to add non-ANSI support
  2. Avenger #1 @6494
  3. Thu Apr 08 20:35:52 1993
  4.  
  5. ┌───────────────────────────────────────────────────────────────────────────┐
  6. │ Mod Name: MJW01a.MOD         Mod Author: Avenger @6494 WWIVNet, IceNET    │
  7. │ Difficulty: Simple Block Copy              Date: April 8, 1993            │
  8. │ WWIV Version: 4.22                                                        │
  9. │ Files Affected: BBSUTL.C                                                  │
  10. │ Description: Better looking "Yourinfo" with boxed outline.                │
  11. │   Revision "a" adds back in the yourinfo screen for non-ANSI users        │
  12. └───────────────────────────────────────────────────────────────────────────┘
  13.  
  14.  
  15.  DESCRIPTION...
  16.  Put's user's information inside of a box and adds multi-colors.
  17.  
  18.  DISCLAIMER...
  19.  Works on Michael's Madness... If something goes wrong and it makes
  20. you feel better, blame me. Please back up your source code just in case.
  21. I usually do a "pkzip -f source *.c *.h *.mak" to freshen all the
  22. important files.
  23.  
  24. Step One...
  25.  
  26. Go into BBSUTL.C, and search for "void yourinfo(void)." Delete the entire void.
  27.  
  28.  
  29.  
  30. Step Two...
  31.  
  32. Block read this VOID YOURINFO in place of it and join the lines that were
  33. split due to being over 80 characters long.
  34.  
  35.  
  36. /* **** Begin Block Copy Here  MJW1a.mod  04/08/93 **** */
  37.  
  38. void yourinfo(void)
  39. {
  40.  
  41.         if (okansi()){
  42.         clearscreen();
  43.         nl();nl();nl();
  44.         pl("2                        Your Information presented by");0
  45.         pl("1                              Michael's Madness"); /*Change to the 0
  46. name of your board*/
  47.         pl("3                   ╒═════════════════╤════════════════════╕"); /* c0
  48. hange the colors to your liking */
  49.         npr("3                   │9 Alias           3│7  %-18s3│\r\n",nam(&thisuser,0
  50. usernum)); /* by changing the numbers */
  51.         npr("3                   │9 Real Name       3│7  %-18s3│\r\n",thisuser.realn0
  52. ame); /* after the hearts */
  53.         npr("3                   │9 Voice Phone     3│7  %-18s3│\r\n",thisuser.phone0
  54. );
  55.         npr("3                   │9 Data Phone      3│7  %-18s3│\r\n",thisuser.datap0
  56. hone);
  57.         npr("3                   │9 Security Level  3│7  %-18d3│\r\n",thisuser.sl,ac0
  58. tsl);
  59.         npr("3                   │9 Last On         3│7  %-18s3│\r\n",thisuser.lasto0
  60. n);
  61.         npr("3                   │9 Times On        3│7  %-18d3│\r\n",thisuser.logon0
  62. s);
  63.         npr("3                   │9 On Today        3│7  %-18d3│\r\n",thisuser.ontod0
  64. ay);
  65.         npr("3                   │9 Mail Waiting    3│7  %-18d3│\r\n",thisuser.waiti0
  66. ng);
  67.         npr("3                   │9 E-Mail Sent     3│7  %-18d3│\r\n",0
  68.         (thisuser.emailsent+thisuser.feedbacksent+thisuser.emailnet));
  69.         npr("3                   │9 Messages Posted 3│7  %-18d3│\r\n",thisuser.msgpo0
  70. st);
  71.         npr("3                   │9 Total Time On   3│7  %-18ld3│\r\n",(long)0
  72.         ((thisuser.timeon+timer()-timeon)/60.0));
  73.         pl("3                   ╘═════════════════╧════════════════════╛");0
  74.         nl();nl();nl();
  75.         pausescr();
  76.         clearscreen();
  77.         }
  78.  
  79.     else
  80.  
  81. {
  82.   outchr(12);  /*  This is the original void that will support */
  83.   outstr(get_string(602)); pl(nam(&thisuser,usernum)); /* non-ANSI users */
  84.   outstr(get_string(603)); pl(thisuser.phone);
  85.   if (thisuser.waiting) {
  86.     outstr(get_string(365)); npr("%d\r\n",thisuser.waiting);
  87.   }
  88.   outstr(get_string(604)); npr("%d",thisuser.sl);
  89.  
  90.   if (actsl!=thisuser.sl) {
  91.     outstr(get_string(605));
  92.     npr("%d",actsl);
  93.     pl(")");
  94.   } else
  95.     nl();
  96.   outstr(get_string(606)); pln(thisuser.dsl);
  97.   outstr(get_string(366)); pl(thisuser.laston);
  98.   outstr(get_string(607)); pln(thisuser.logons);
  99.   outstr(get_string(608)); pln(thisuser.ontoday);
  100.   outstr(get_string(609)); pln(thisuser.msgpost);
  101.   outstr(get_string(610));
  102.     pln((thisuser.emailsent+thisuser.feedbacksent+thisuser.emailnet));
  103.   outstr(get_string(611)); npr("%ld",(long)
  104.     ((thisuser.timeon+timer()-timeon)/60.0));
  105.   pl(get_string(612));
  106.   nl();
  107.   }
  108.  }
  109. /* **** End Block Copy **** */
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  Feel free to change the colors to your liking. If you don't have a mod in
  116. that lets you have the two extra colors, you'll not be able to use colors
  117. 8 or 9.
  118.  
  119. Step Three...
  120.  
  121.  Type "MAKE", copy the new version of "BBS.EXE" to the board's directory
  122. and enjoy.
  123.  
  124.  
  125. Please address comments, questions and sugestions to:
  126.  Avenger @6494 IceNET, WWIVNet. All corespondence would be
  127. greatly appreciated. Please drop a note if you use this mod.
  128.  
  129. 8C╓──────────────────────────────────────╖
  130. 7C║Michael's Madness @6494 WWIVNet,IceNET
  131. 6C║    @110 OhioNet 14.4 24 Hours ASV    
  132. 5C╙──────────────────────────────────────╜
  133.